package com.wanqiu.ThreadPoolExecutorQueryDatabase.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.wanqiu.ThreadPoolExecutorQueryDatabase.entity.UserInfo;
import com.wanqiu.ThreadPoolExecutorQueryDatabase.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoServiceImpl implements UserInfoService{
    @Autowired
    private UserInfoMapper userInfoMapper;
    @Override
    public List<UserInfo> query() {
        return userInfoMapper.selectList(new EntityWrapper<UserInfo>());
    }

    @Override
    public List<UserInfo> threadQuery(UserInfoMapper userInfoMapper) {
        return userInfoMapper.selectList(new EntityWrapper<UserInfo>());
    }
}
